package com.df.my_net_game.common.utils;

import com.esotericsoftware.reflectasm.MethodAccess;
import lombok.Data;

@Data
public class LogicMethodData {
    private String methodName = "";
    private String methodDesc = "";
    private Integer methodId = 0;
    private Integer methodFullId = 0;

    private String paramName;
    private Class paramType;
    private boolean paramIsBaseType = false;
    private Class paramWrapperType;

    private Class returnType;
    private boolean returnIsBaseType = false;
    private Class returnWrapperType;

    MethodAccess methodAccess;
    Object instance;
    int methodIndex = 0;

    public Object invoke(Object... args){
        return methodAccess.invoke(instance,methodId,args);
    }
}
